package com.sakura.mall.coupon.seckillSession.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.coupon.seckillSession.domain.entity.SeckillSessionEntity;
import com.sakura.mall.coupon.seckillSession.domain.request.AddSeckillSessionRequest;
import com.sakura.mall.coupon.seckillSession.domain.request.UpdateSeckillSessionRequest;
import com.sakura.mall.coupon.seckillSession.domain.request.SeckillSessionPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.coupon.seckillSession.domain.vo.SeckillSessionVo;

/**
 * 秒杀活动场次 service
 *
 * @author sakura
 */
public interface SeckillSessionService extends IService<SeckillSessionEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<SeckillSessionVo> queryPage(SeckillSessionPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddSeckillSessionRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateSeckillSessionRequest request);
}
